package com.zeyun.EasyOnlineShareCloud.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zeyun.EasyOnlineShareCloud.common.database.BaseDO;
import lombok.*;
import lombok.experimental.Accessors;


/**
 * 用户持久层实体
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "t_user")
@Accessors(chain = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserDO extends BaseDO {
	/**
	 * 用户ID
	 */
	@TableId(type = IdType.ASSIGN_UUID)
	private String id;

	/**
	 * 用户名
	 */
	private String username;

	/**
	 * 密码
	 */
	private String password;

	/**
	 * 邮箱
	 */
	private String email;

	/**
	 * 角色：admin/user
	 */
	private String role;

	/**
	 * 状态：active-活跃，locked-锁定
	 */
	private String status;
}